//
//  HLNavTitleable.swift
//  HLXiMaLaYa
//
//  Created by hulinhu on 2018/1/23.
//  Copyright © 2018年 hulinhu. All rights reserved.
//

// 设置Nav 导航栏标题视图 重写

import UIKit

protocol HLNavTitleable {
    
}

extension HLNavTitleable where Self : UIViewController {
    
    // MARK:- 导航栏 自定义标题 通用组件
    func titleView(titleView : UIView) -> UIView {
        navigationItem.titleView = titleView
        return titleView
    }
}
